﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Data.SqlClient;
using System.Data;
using TSL_Tools.SqlTools;
using ReportingEngine;
using System.IO;

namespace VSLT_Reporting
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        // -- EVENT Handlers for the tabs and DataGrid----------------------------------------
        #region CONTROLS
        private void dgMainResults_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DataGridSelectionChanged();
        }

        private void rtbResults_TextChanged(object sender, TextChangedEventArgs e)
        {
            tabRichTextBox.IsSelected = true;
        }

        private void DataGridTab_SourceUpdated(object sender, DataTransferEventArgs e)
        {
            tabDataGrid.IsSelected = true;
        }

        private void btnQueryDebug_MouseUp(object sender, MouseButtonEventArgs e)
        {
            System.Windows.Clipboard.SetText(mostRecentSqlQuery);
            tsslMessage.Content = "copied Sql Query To ClipBoard";
        }

        private void cbFontStyle_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (!appIsInitializing)
            {
                string str = rtbResults.Selection.Text;
            }
        }
        #endregion

    }
}



